package com.oa.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * @author FengMengHuo
 * 这是个部门类
 * 部门 一<-->多 用户
 * 部门 多<-->一 父部门（上级）
 * 部门 一<-->多 子部们（下级）
 */
public class Department {
	
	private String unique_id; //部门ID
	private String department_name; //部门名称
	private String department_description; //部门描述
	
	private Set<User> userSet = new HashSet<User>(); //用户集合
	private Department department_parent; //父部门
	private Set<Department> department_children = new HashSet<Department>(); //子部门
	
	public Department() {
	}
	
	//========================get(),set()方法========================
	public String getUnique_id() {
		return unique_id;
	}
	public void setUnique_id(String unique_id) {
		this.unique_id = unique_id;
	}
	public String getDepartment_name() {
		return department_name;
	}
	public void setDepartment_name(String department_name) {
		this.department_name = department_name;
	}
	public String getDepartment_description() {
		return department_description;
	}
	public void setDepartment_description(String department_description) {
		this.department_description = department_description;
	}
	public Set<User> getUserSet() {
		return userSet;
	}
	public void setUserSet(Set<User> userSet) {
		this.userSet = userSet;
	}
	public Department getDepartment_parent() {
		return department_parent;
	}
	public void setDepartment_parent(Department department_parent) {
		this.department_parent = department_parent;
	}
	public Set<Department> getDepartment_children() {
		return department_children;
	}
	public void setDepartment_children(Set<Department> department_children) {
		this.department_children = department_children;
	}
}
